package mr.ali.webvideo.controller;


import mr.ali.webvideo.Exception.R;
import mr.ali.webvideo.model.CollectionAlpay;
import mr.ali.webvideo.service.ICollectionAlpayService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-08-16
 */
@RestController
@RequestMapping("/h5/collectionAlpay")
public class CollectionAlpayController {

    @Resource
    private ICollectionAlpayService collectionAlpayService;

    @GetMapping("")
    public R<List<CollectionAlpay>> lists (){
        List<CollectionAlpay> list =collectionAlpayService.getAlpays();

        return R.ok(list);
    }
}
